package com.putong35.common.httprequest;


import com.putong35.common.httprequest.responsecallbacks.BaseResponseListener;

import org.json.JSONObject;

import java.util.Map;

public interface IHttpRequest {
	void get(String url, UrlParams params, BaseResponseListener cb);

	void get(String url, UrlParams params, Map<String, String> headParams, BaseResponseListener cb);

	void put(String url, JSONObject jsonObject, BaseResponseListener cb);

	void put(String url, JSONObject jsonObject, Map<String, String> headParams, BaseResponseListener cb);

	void post(String url, UrlParams params, final BaseResponseListener cb);

	void post(String url, UrlParams params, Map<String, String> headParams, final BaseResponseListener cb);

	void post(String url, JSONObject jsonObject, final BaseResponseListener cb);

	void post(String url, JSONObject jsonObject, Map<String, String> headParams, final BaseResponseListener cb);

	void delete(String url, UrlParams params, BaseResponseListener cb);

	void delete(String url, UrlParams params, Map<String, String> headParams, BaseResponseListener cb);

	void finish();
}
